import uvicorn
import api
import events
from fastapi import FastAPI

app = FastAPI()
api.register_routers(app)


@app.on_event("startup")
async def start_events() -> None:
    events.start_all()

if __name__ == "__main__":
    uvicorn.run(app)
